package com.demo.studentmanager.dto;

import com.demo.studentmanager.entity.User;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiParam;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotNull;

/**
 * @author wx
 */
@EqualsAndHashCode(callSuper = true)
@Data
@Accessors(chain = true)
public class UserUpdDto extends BaseDto<User> {
    @ApiParam(value = "id", required = true)
    @NotNull
    private String id;

    @ApiModelProperty(value = "用户名")
    private String userName;

    @ApiParam(value = "id")
    @ApiModelProperty(value = "角色id")
    private Integer roleId;

}
